<template>
	<view class="p-2">
		<view class="mb-2 p-2 bg-white rounded " v-for="(item,index) in list" :key="index" @click="open(item)">
			<view class="text-dark font-md">
				{{item.title}}
			</view>
			<view class="font text-light-muted">
				{{item.desc}}
			</view>
			<view class="font text-light-muted">{{item.create_time}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[
					{
						title:"韩城味道特产馆3月28日正式开业啦",
						desc:"开业大酬宾活动正在进行中",
						create_time:"2024-03-27"
					},
					{
						title:"韩城味道特产馆3月28日正式开业啦",
						desc:"开业大酬宾活动正在进行中",
						create_time:"2024-03-27"
					},
					{
						title:"韩城味道特产馆3月28日正式开业啦",
						desc:"开业大酬宾活动正在进行中",
						create_time:"2024-03-27"
					}
				]
			}
		},
		methods: {
			open(item) {
				uni.navigateTo({
					url: "/pages/msg-detail/msg-detail?detail="+JSON.stringify(item)
				})
			}
		}
	}
</script>

<style>
page{
	background: #EEE;
}
</style>
